GtkApplication Docs: Add a hint.
authorMurray Cumming <murrayc@murrayc.com>
Wed, 28 Mar 2012 09:26:22 +0000 (11:26 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Wed, 28 Mar 2012 09:26:22 +0000 (11:26 +0200)
gtk_application_set_app_menu(), gtk_application_set_menubar():
Mention that you probably want to call this in the startup signal
handler. If you do it earlier you will likely get a warning about
a missing D-Bus connection, because doing it earlier does not
make sense anyway.

gtk/gtkapplication.c

index 3513c711998d26dffb04b10428618382ce939ea0..30c17b550b7684707adac5f2e051d2efc992ed83 100644 (file)
@@ -784,8 +784,8 @@ gtk_application_class_init (GtkApplicationClass *class)
  * as soon as the application gets registered as the primary instance.
  *
  * Concretely, gtk_init() is called in the default handler for the
- * startup() signal. Therefore, #GtkApplication subclasses should
- * chain up in their startup() handler before using any GTK+ API.
+ * #GApplication:startup signal. Therefore, #GtkApplication subclasses should
+ * chain up in their #GApplication:startup handler before using any GTK+ API.
  *
  * Note that commandline arguments are not passed to gtk_init().
  * All GTK+ functionality that is available via commandline arguments
@@ -1008,6 +1008,8 @@ gtk_application_remove_accelerator (GtkApplication *application,
  * If supported, the application menu will be rendered by the desktop
  * environment.
  *
+ * You might call this method in your #GApplication:startup signal handler.
+ *
  * Use the base #GActionMap interface to add actions, to respond to the user
  * selecting these menu items.
  *
@@ -1075,6 +1077,8 @@ gtk_application_get_app_menu (GtkApplication *application)
  * example, the application menu may be rendered by the desktop shell
  * while the menubar (if set) remains in each individual window.
  *
+ * You might call this method in your #GApplication:startup signal handler.
+ *
  * Use the base #GActionMap interface to add actions, to respond to the user
  * selecting these menu items.
  *